package resources.NTree;

import resources.NTree.*;


public class SNode {
	Object value;
	SNode next;

	SNode() {
		value = null;
		next = null;
	}

	SNode(Object aValue) {
		value = aValue;
		next = null;
	}

	public SNode next() {
		return next;
	}

	public void next(SNode nextNode) {
		next = nextNode;
	}

	public void value(Object aValue) {
		value = aValue;
	}

	public Object value() {
		return value;
	}

	public boolean equals(SNode aNode) {
		return value.equals(aNode.value());
	}

}